package com.ruoyi.points.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 积分抽奖活动对象 points_lottery_activity
 * 
 * @author nz
 * @date 2025-08-01
 */
public class PointsLotteryActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 每次抽奖消耗积分 */
    @Excel(name = "每次抽奖消耗积分")
    private Long pointsCost;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 每人每日抽奖上限 */
    @Excel(name = "每人每日抽奖上限")
    private Long dailyLimit;

    /** 每人总抽奖上限 */
    @Excel(name = "每人总抽奖上限")
    private Long totalLimit;

    /** 中奖率(%) */
    @Excel(name = "中奖率(%)")
    private BigDecimal winRate;

    /** 积分抽奖奖品信息 */
    private List<PointsLotteryPrize> pointsLotteryPrizeList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setPointsCost(Long pointsCost) 
    {
        this.pointsCost = pointsCost;
    }

    public Long getPointsCost() 
    {
        return pointsCost;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDailyLimit(Long dailyLimit) 
    {
        this.dailyLimit = dailyLimit;
    }

    public Long getDailyLimit() 
    {
        return dailyLimit;
    }

    public void setTotalLimit(Long totalLimit) 
    {
        this.totalLimit = totalLimit;
    }

    public Long getTotalLimit() 
    {
        return totalLimit;
    }

    public void setWinRate(BigDecimal winRate) 
    {
        this.winRate = winRate;
    }

    public BigDecimal getWinRate() 
    {
        return winRate;
    }

    public List<PointsLotteryPrize> getPointsLotteryPrizeList()
    {
        return pointsLotteryPrizeList;
    }

    public void setPointsLotteryPrizeList(List<PointsLotteryPrize> pointsLotteryPrizeList)
    {
        this.pointsLotteryPrizeList = pointsLotteryPrizeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("pointsCost", getPointsCost())
            .append("status", getStatus())
            .append("dailyLimit", getDailyLimit())
            .append("totalLimit", getTotalLimit())
            .append("winRate", getWinRate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("pointsLotteryPrizeList", getPointsLotteryPrizeList())
            .toString();
    }
}
